#include<iostream>
#include<string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    string s1, s2;
    s1 = s.substr(0, 2);
    s2 = s.substr(3);
    int h = stoi(s1);
    int m = stoi(s2);
    if (h < 12 || (h == 12 && m == 0)) 
    {
        cout << "Only " << s1 << ":" << s2 << ".  Too early to Dang." << endl;
        return 0;
    }
    h -= 12;
    int n = (m == 0 ? h : h + 1);
    for (int i = 1; i <= n; i++)
    {
        cout << "Dang";
    }
    return 0;
}